namespace StaffingSystem.EF
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("Postchange")]
    public partial class Postchange
    {
        [Key]
        [Column(Order = 0)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }

        [Key]
        [Column(Order = 1)]
        [StringLength(20)]
        public string Name { get; set; }

        [Key]
        [Column(Order = 2)]
        public bool Sex { get; set; }

        [Key]
        [Column(Order = 3)]
        [StringLength(50)]
        public string P_Name { get; set; }

        public DateTime? AddTime { get; set; }

        [StringLength(500)]
        public string Reason { get; set; }

        [Key]
        [Column(Order = 4)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Type { get; set; }

        public bool? Result { get; set; }

        [StringLength(500)]
        public string Proposal { get; set; }

        [Key]
        [Column(Order = 5)]
        [StringLength(20)]
        public string D_Number { get; set; }

        [Key]
        [Column(Order = 6)]
        [StringLength(20)]
        public string D_Name { get; set; }

        [Key]
        [Column(Order = 7)]
        [StringLength(20)]
        public string JobNumber { get; set; }

        [StringLength(20)]
        public string BossNumber { get; set; }
    }
}
